home *** CD-ROM | disk | FTP | other *** search
/ Super PC 34 / Super PC 34 (Shareware).iso / spc / UTIL / DJGPP2 / CONTRIB / ZLIB_PC.ZIP / zlib_pc / zfeof.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-20  |  357 b   |  24 lines

  1. #include "zdef.h"
  2.  
  3. /*------------------------------*/
  4. /*    zfeof            */
  5. /*------------------------------*/
  6. #ifndef __STDC__
  7. int zfeof (z)
  8. ZFILE *z;
  9. #else
  10. int zfeof (ZFILE *z)
  11. #endif
  12. {
  13.     if ((z->flags & NOT_COMPRESSED) != 0)
  14.     {
  15.         if      (z->c1 != EOF)
  16.         {
  17.                     return ((int) (0 != 0));
  18.         }
  19.         return ((int) feof (z->file));
  20.     }
  21.     return ((int) (z->zeof));
  22. }
  23.  
  24.